pimpas.AJAX.Populate.Input = Class.create( );
pimpas.Extends(pimpas.AJAX.Populate.Input.prototype, pimpas.AJAX.Populate.Object.prototype);
pimpas.Extends(pimpas.AJAX.Populate.Input.prototype,
   {
	   populate: function(xmlObject, xmlElement) {
		    this.log.log(pimpas.Log.INFO, 'Executing Input Populate... Object: '+this.id);
			var id = xmlObject.getAsText( xmlObject.eval( new pimpas.XML.Xpath( 'id' ), xmlElement).iterateNext( ) );
			if(!pimpas.DOM.isInput(id)) {
				this.log.log(pimpas.Log.ERROR, 	'The Object with ID ['+this.id+'] ITS NOT INPUT!!!!');
				return;
			}
			
			var value = xmlObject.getAsText( xmlObject.eval( new pimpas.XML.Xpath( 'value' ), xmlElement).iterateNext( ) );
			this.log.log(pimpas.Log.INFO, '[POPULATE]: Setting Object value => ID: '+id+', VALUE: '+value);
			pimpas.DOM.setObjectValue( id, value );
	   }
   }
);